package ooday04;
/** 枚举的测试类 */
public class EnumTest {
    public static void main(String[] args) {
        Seasons s = Seasons.WINTER;  //获取WINTE对象，
        System.out.println(s.getSeasonName()+","+s.getSeasonDesc());  //冬天，冷

        Seasons [] seasons = Seasons.values();
        for (int i = 0; i < seasons.length; i++) {
            System.out.println(seasons[i]);  //SPRING
            System.out.println(seasons[i].getSeasonName());  //春天
            System.out.println(seasons[i].getSeasonDesc());  //暖和

        }
    }
}
